import type { PageParams } from '@/types/global'
import type { HotResult, SubTypeParams } from '@/types/hot'
import { http } from '@/utils/http'
export type HotParams = PageParams & { subType?: string } // 交叉类型扩展类型

/**
 *通用热门推荐类型
 * @param url
 * @param data
 */
export const getHotRecommendAPI = (url: string, data?: HotParams) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
